//
//  CustomSearchView.h
//  TengyunStation
//
//  Created by Johnny on 15/9/13.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CustomSearchViewDelegate <NSObject>

@optional
- (void)startScanning;
- (void)startSearchText:(NSString *)text;
- (void)cancelSearch;
- (void)textEditingChanged:(NSString *)text;
- (BOOL)customSearchLimitText:(NSString *)string;

@end

@interface CustomSearchView : UIControl<UITextFieldDelegate> {
//    UITextField *_searchTextField;
    UIButton *_cancelBtn;
//    BOOL _isShowCancel;
}

@property(nonatomic,assign)BOOL isShowCancel;
@property(nonatomic,assign)BOOL isShowScanning;
@property(nonatomic,strong)UITextField *searchTextField;
@property(nonatomic,weak)IBOutlet id<CustomSearchViewDelegate>delegate;

@end
